/* 主容器布局 */
.remote-sensing-container {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 1.25rem;
    padding: 1.25rem;
    height: calc(100vh - 60px);
    overflow: hidden;
}

/* 左侧控制面板 */
.control-panel {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.panel-section {
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.panel-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.panel-section h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

/* 日期选择器 */
.date-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-range input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

/* 分析类型按钮 */
.analysis-types {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.analysis-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: none;
    cursor: pointer;
    transition: all 0.2s;
}

.analysis-btn i {
    font-size: 1.1rem;
}

.analysis-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* 筛选选项 */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-item label {
    color: #666;
    font-size: 0.9rem;
}

.filter-item select {
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

/* 中间内容区域 */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
}

/* 地图容器 */
.map-container {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.map-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.map-tools {
    display: flex;
    gap: 0.5rem;
}

.tool-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: white;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.tool-btn:hover {
    background: #f8f9fa;
    color: #3498db;
}

#analysisMap {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

/* 分析结果区域 */
.analysis-container {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.btn-export {
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: white;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-export:hover {
    background: #f8f9fa;
    color: #3498db;
}

/* 右侧详情面板 */
.detail-panel {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 地块详情 */
.plot-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 历史记录列表 */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* 分析结果内容样式 */
.analysis-result-content {
    padding: 1rem 0;
}

/* 概览卡片样式 */
.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.stat-card.highlight {
    background: #3498db;
    color: white;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info h4 {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.stat-trend {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.stat-trend.positive {
    color: #2ecc71;
}

/* 影响因素卡片 */
.factors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.factor-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.factor-info {
    flex: 1;
}

.factor-progress {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    margin: 0.5rem 0;
    position: relative;
}

.factor-progress::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--progress);
    background: #3498db;
    border-radius: 2px;
}

/* 图表容器 */
.chart-container {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

/* 干旱指数相关样式 */
.drought-overview {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.drought-value {
    margin-bottom: 2rem;
}

.drought-value .number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.drought-value .label {
    display: block;
    color: #666;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.drought-scale {
    position: relative;
    height: 8px;
    background: linear-gradient(to right, 
        #2ecc71 0%,    /* 正常 */
        #f1c40f 33%,   /* 轻度 */
        #e67e22 66%,   /* 中度 */
        #e74c3c 100%   /* 重度 */
    );
    border-radius: 4px;
    margin: 2rem 0;
}

.scale-marker {
    position: absolute;
    left: var(--position);
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid #3498db;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* 成熟度分析相关样式 */
.maturity-overview {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.progress-ring {
    width: 150px;
    height: 150px;
}

.progress-ring-circle {
    fill: none;
    stroke: #3498db;
    stroke-width: 8;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    stroke-dasharray: 283;
    stroke-dashoffset: 70;
}

.progress-ring text {
    fill: #2c3e50;
    text-anchor: middle;
    dominant-baseline: middle;
    font-family: Arial, sans-serif;
}

.progress-text {
    font-size: 24px;
    font-weight: bold;
}

.progress-label {
    font-size: 14px;
    fill: #666;
}

.maturity-info {
    flex: 1;
}

.current-stage {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.estimate-time {
    color: #666;
    font-size: 0.9rem;
}

/* 时间线样式 */
.stage-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 24px;
    bottom: -24px;
    width: 2px;
    background: #e0e0e0;
}

.timeline-point {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e0e0e0;
    position: relative;
    z-index: 1;
}

.timeline-item.completed .timeline-point {
    background: #2ecc71;
}

.timeline-item.active .timeline-point {
    background: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

.timeline-content {
    flex: 1;
    padding-top: 2px;
}

.stage-name {
    display: block;
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stage-date {
    color: #666;
    font-size: 0.9rem;
}

.timeline-item.completed .stage-name {
    color: #2ecc71;
}

.timeline-item.active .stage-name {
    color: #3498db;
}

/* 图表容器样式优化 */
.chart-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 高亮卡片样式优化 */
.stat-card.highlight .stat-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.stat-card.highlight .stat-info h4,
.stat-card.highlight .stat-value,
.stat-card.highlight .stat-trend {
    color: white;
}

/* 因素卡片样式优化 */
.factor-card {
    transition: all 0.3s ease;
}

.factor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.factor-card i {
    font-size: 1.5rem;
    color: #3498db;
}

.factor-info h5 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 0.95rem;
}

.factor-info span {
    color: #666;
    font-size: 0.9rem;
}

/* 历史记录样式 */
.history-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.history-preview {
    position: relative;
    height: 120px;
}

.history-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-type {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.9);
}

.preview-type.growth { color: #2ecc71; }
.preview-type.yield { color: #3498db; }
.preview-type.drought { color: #e74c3c; }
.preview-type.maturity { color: #f1c40f; }

.history-info {
    padding: 1rem;
}

.history-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.analysis-time {
    color: #7f8c8d;
    font-size: 0.85rem;
}

.area-name {
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9rem;
}

.history-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.key-value {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.key-value .key {
    color: #666;
    font-size: 0.9rem;
}

.key-value .value {
    font-weight: 500;
    color: #2c3e50;
}

.trend-indicator {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.trend-indicator.up {
    color: #2ecc71;
}

.trend-indicator.down {
    color: #e74c3c;
}

/* 地块详情样式 */
.plot-basic-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.plot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.plot-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.plot-id {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-item i {
    color: #3498db;
    font-size: 1.2rem;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-content label {
    color: #666;
    font-size: 0.85rem;
}

.info-content span {
    color: #2c3e50;
    font-weight: 500;
}

.plot-detail-section,
.plot-status-section {
    margin-bottom: 1.25rem;
}

.plot-detail-section h4,
.plot-status-section h4 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.detail-list {
    display: grid;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item label {
    color: #666;
}

.detail-item span {
    color: #2c3e50;
    font-weight: 500;
}

.status-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.status-card {
    background: white;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.status-icon {
    color: #3498db;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.status-info label {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.status-info span {
    color: #2c3e50;
    font-weight: 600;
}

.plot-action-section {
    display: flex;
    gap: 0.75rem;
}

.action-btn {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn.primary {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}